version: '3.8'

services:
  service1:
    build:
      context: ./service1
    ports:
      - "5000:5000"
    networks:
      - my_custom_network

  service2:
    build:
      context: ./service2
    ports:
      - "5001:5001"
    networks:
      - my_custom_network

  service3:
    build:
      context: ./service3
    ports:
      - "5002:5002"
    networks:
      - my_custom_network

networks:
  my_custom_network:
    driver: bridge
